package cn.zy.org.service;

import cn.zy.basic.service.IBaseService;
import cn.zy.org.domain.Shop;
import cn.zy.org.domain.ShopAuditLog;
import cn.zy.org.dto.ShopDto;

import javax.mail.MessagingException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zy
 * @since 2023-02-04
 */
public interface IShopService extends IBaseService<Shop> {

    /**
     * 店铺入驻接口
     * @param shop
     */
    void settlement(Shop shop);

    /**
     * 店铺审核通过
     * @param log
     */
    void auditPass(ShopAuditLog log) throws MessagingException;

    /**
     * 店铺审核驳回
     * @param log
     */
    void auditReject(ShopAuditLog log) throws MessagingException;

    /**
     * 邮件激活
     * @param id
     */
    void active(Long id);


    /**
     * 报表 - 查询每一种状态的数量
     * @return
     */
    List<ShopDto> echarts();
}
